/**
  ******************************************************************************
  * @文件     spi.h
  * @作者     hero_cao
  * @版本     V1.0.0
  * @日期     2025/06/14
  * @概要     spi硬件初始化库
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __SPI_H_
#define __SPI_H_

/* Includes ------------------------------------------------------------------*/
#include <stdint.h>

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/


/* Exported functions ------------------------------------------------------- */
void spi2_init(void);
uint8_t spi2_read_write_byte(uint8_t txdata);

void spi1_init(void);
void spi1_write_byte(uint8_t txdata);

void spi4_init(void);
void spi4_write_byte(uint8_t txdata);
uint8_t spi4_read_byte(void);
void spi4_write_data(uint8_t data);

#endif /* __SPI_H_ */

